home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / pc_dcl.zip / HELP / COPY.HTX < prev    next >
Text File  |  1992-01-08  |  5KB  |  192 lines

  1. COPY
  2.  
  3. COPY
  4.  
  5.     Creates a new file from  one  or  more  existing  files.   The  COPY
  6.     command can:
  7.  
  8.     o  Copy an input file to an output file
  9.  
  10.     o  Copy a group of input files to a group of output files
  11.  
  12.     Format:
  13.  
  14.       COPY  input-file-spec output-file-spec
  15.  
  16.     Additional information :
  17.  
  18.        Input-file-spec copy.input-file-spec     output-file-spec copy.input-file-spec
  19.        /ALL copy./all     /BEFORE copy./all    /CONFIRM copy./confirm    /LOG copy./log    /NEW COPY./NEW
  20.        /SINCE copy./since   /SUBDIRECTORY copy./since         /REPLACE copy./repl
  21.        Examples copy.examples
  22.  
  23. copy.input-file-spec
  24.  
  25.  COPY
  26.  
  27.      input-file-spec
  28.  
  29.       Specifies the names of one or more input files to be copied.
  30.       You can use wildcard characters in the file specification.
  31.  
  32.  
  33.      output-file-spec
  34.  
  35.       Specifies the name of the output file into  which  the  input  files
  36.       will be copied.
  37.  
  38.       You  must  specify  at  least  one  field   in   the   output   file
  39.       specification.   If  the  device or directory is not specified, your
  40.       current default device and directory are  used.   The  COPY  command
  41.       replaces  any  other  missing  fields  (file name, file type)   with
  42.       the   corresponding   field   of   the   input  file  specification.
  43.       If  you  specify  more  than  one  input file, COPY  generally  uses
  44.       the fields from the first input file to determine any missing fields
  45.       in the output file.
  46.  
  47.  
  48. copy./all
  49.  
  50.  COPY
  51.  
  52.      /ALL
  53.  
  54.     selects all the files, including those with the HIDDEN or SYSTEM 
  55.     attribute flag on.
  56.  
  57.  
  58.  COPY
  59.  
  60.      /BEFORE=time
  61.  
  62.       Selects only those files that are dated before  the  specified time.
  63.       You can specify either an absolute time or a combination of absolute
  64.       and delta times.  See the  VMS  DCL  Concepts  Manual  for  complete
  65.       information on specifying time values. You can also use the keywords
  66.       NOW, TODAY, TOMORROW, and  YESTERDAY.
  67.  
  68.  
  69. copy./confirm
  70.  
  71.  COPY
  72.  
  73.     /CONFIRM
  74.  
  75.       Controls  whether a  request is issued before each  individual  COPY
  76.       operation  to confirm that the operation should be performed on that
  77.       file.
  78.       When the system  issues  the  prompt,  you  can  issue  any  of  the
  79.       following responses:
  80.  
  81.            YES    NO       QUIT
  82.            TRUE   FALSE
  83.            1      0        ALL
  84.            <RET>
  85.  
  86.       You can use any combination of upper- and lowercase letters for word
  87.       responses.  Word responses can be abbreviated to one or more letters
  88.       (for example, T, TR, or TRU for TRUE).  Affirmative answers are YES,
  89.       TRUE, and 1.  Negative answers are NO, FALSE, 0, and <RET>.
  90.       QUIT  indicates that you want to stop  processing  the  command  at
  91.       that  point.   When  you  respond with ALL, the command continues to
  92.       process, but no further prompts are given.  If you type  a  response
  93.       other than one of those in the list, the prompt will be reissued.
  94.  
  95. copy./log
  96.  
  97.  COPY
  98.  
  99.  
  100.     /LOG
  101.  
  102.       Controls whether the COPY  command  displays the file specifications
  103.       of each file appended.
  104.  
  105.  
  106.  
  107. copy./repl
  108.  
  109.  COPY
  110.  
  111.     /REPLACE
  112.  
  113.      /REPLACE (default)
  114.      /NOREPLACE
  115.  
  116.  
  117.       Requests  that,  if  a  file  already  exists  with  the  same  file
  118.       specification as that entered for the output file, the existing file
  119.       is to be deleted.
  120.  
  121.       By default, the COPY command overwrites a file if a file  with  that
  122.       specification  already  exists.
  123.       Under  /NOREPLACE,  when  a  conflict  file  specifications   occurs,
  124.       an error is signaled.
  125.  
  126. copy./since
  127.  
  128.  COPY
  129.  
  130.      /SINCE=time
  131.  
  132.      Selects only those files that are dated after the specified time.
  133.  
  134.       You can specify either an absolute time or a combination of absolute
  135.       and delta times.   See  the  VMS  DCL  Concepts  Manual for complete
  136.       information on  specifying  time  values.   You  can  also  use  the
  137.       keywords TODAY,  TOMORROW,  and YESTERDAY.
  138.  
  139.  
  140.  
  141.  
  142.  COPY
  143.  
  144.      /SUBDIR
  145.  
  146.      Use this flag for scanning subdirectories when using MS-DOS file
  147.      specifications. 
  148.  
  149.  
  150. copy.examples
  151.  
  152.  COPY
  153.  
  154.   Examples
  155.  
  156.  
  157.       1.   $ COPY TEST.DAT NEWTEST.DAT
  158.  
  159.       The COPY command copies the contents of the file TEST.DAT  from  the
  160.       default  disk  and directory to a file named NEWTEST.DAT on the same
  161.       disk and directory.  If a file named NEWTEST.DAT already exists, the
  162.       COPY command overwrites it.
  163.  
  164.       2. $ COPY ALPHA.TXT TMP
  165.            $ COPY ALPHA.TXT .TMP
  166.  
  167.       The first COPY command copies the file ALPHA.TXT into a  file  named
  168.       TMP.TXT.   The  COPY command uses the file type of the input file to
  169.       complete the file specification for the  output  file.   The  second
  170.       COPY  command creates a file named ALPHA.TMP.  The COPY command uses
  171.       the file name of the input file to name the output file.
  172.  
  173.  
  174.       3. $ COPY *.* [TEST]*.*
  175.  
  176.       The COPY command copies all files within the user directory into the
  177.       [test] directory of the same disk. The new files will have the  same
  178.       names as the input file.
  179. 
  180. COPY./NEW
  181.  
  182.   COPY
  183.  
  184.     /NEW
  185.  
  186.       If target file already exists, it will bbe overwritten only if the
  187.       source  last  modification  date  is  greater than the target last 
  188.       modification date.
  189.  
  190.  
  191. 
  192.